<?php

namespace app\common\services;

use app\common\model\FeedBack as FeedBackModel;
use think\facade\Db;

use think\facade\Cache;

class FeedbackService
{
    
    // 意见反馈详情
    public static function info($id){
        
        $info = FeedBackModel::where('id',$id)->find();
        return $info;
    }
    
    /**
     * 意见反馈添加
     */
    public static function add($data){
        
        $feedback = new FeedBackModel;
        $feedback->allowField(true)->save($data);
    }
}